/*
 * @Author: yushuaixm
 */
const { http } = uni.$zz


export const saveEntity = (
  params?: any,
  config = {
    custom: {
      catch: true
    }
  }
) => http.post('wx/order/saveEntity', params, config)


export const getOrderByWxid = (
  params?: any,
  config = {
    custom: {
      catch: true
    }
  }
) => http.post('wx/order/getOrderByWxid', params, config)


export const quitOrder = (
  params?: any,
  config = {
    custom: {
      catch: true
    }
  }
) => http.post('wx/order/quitOrder', params, config)


export const startOrder = (
  params?: any,
  config = {
    custom: {
      catch: true
    }
  }
) => http.post('wx/order/startOrder', params, config)


export const stopOrder = (
  params?: any,
  config = {
    custom: {
      catch: true
    }
  }
) => http.post('wx/order/stopOrder', params, config)


export const payDjOrder = (
  params?: any,
  config = {
    custom: {
      catch: true
    }
  }
) => http.post('wx/order/payDjOrder', params, config)


export const payPayOrder = (
  params?: any,
  config = {
    custom: {
      catch: true
    }
  }
) => http.post('wx/order/payPayOrder', params, config)


export const saveOrderEval = (
  params?: any,
  config = {
    custom: {
      catch: true
    }
  }
) => http.post('wx/order/saveOrderEval', params, config)





export const orderTimeMananger = (
  params?: any,
  config = {
    custom: {
      catch: true
    }
  }
) => http.post('wx/order/orderTimeMananger', params, config)


export const orderDetailById = (
  params?: any,
  config = {
    custom: {
      catch: true
    }
  }
) => http.post('wx/order/orderDetailById', params, config)


export const wxPayOrderMM = (
  params?: any,
  config = {
    custom: {
      catch: true
    }
  }
) => http.post('wx/order/wxPayOrderMM', params, config)


export const getBsEvalById = (
  params?: any,
  config = {
    custom: {
      catch: true
    }
  }
) => http.post('wx/order/getBsEvalById', params, config)


export const delDjOrder = (
  params?: any,
  config = {
    custom: {
      catch: true
    }
  }
) => http.post('wx/order/delDjOrder', params, config)



export const queryOrderDetail = (
  params?: any,
  config = {
    custom: {
      catch: true
    }
  }
) => http.post('wx/order/queryOrderDetail', params, config)


export const topayPal = (
  params?: any,
  config = {
    custom: {
      catch: true
    }
  }
) => http.post('wx/order/payPal', params, config)

export default { topayPal,queryOrderDetail,saveEntity, getOrderByWxid, quitOrder, startOrder, stopOrder, payDjOrder, payPayOrder, saveOrderEval, orderTimeMananger, orderDetailById, wxPayOrderMM, getBsEvalById, delDjOrder };